package com.lmaor.project.commons.random;

import java.util.concurrent.atomic.AtomicLong;

public class KeyId {
	private String name;
	public KeyId(String name) {
		this.name = name;
	}
	public AtomicLong atomicLong = new AtomicLong();
	
	public String getTimeStampId() {
		return new StringBuilder(30).append(name).append("_")
				.append(System.currentTimeMillis()).append("_")
				.append(atomicLong.incrementAndGet()).toString();
	}
	
}
